#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	const double TAIL = 0.414;
	
	int caseCount;
	cin >> caseCount;
	
	for (int i = 1; i <= caseCount; ++i)
	{
		int line, row;
		cin >> line >> row;
		
		cout << "Scenario #" << i << ":\n";
		
		int gridCount = line * row;
		if ((gridCount & 0x1) == 0)
		{
			cout << setiosflags(ios::fixed) << setprecision(2) << (float)gridCount << endl << endl;
		}
		else
		{
			cout << setiosflags(ios::fixed) << setprecision(2) << (float)gridCount+TAIL << endl << endl;
		}
		
	}
	return 0;
}
